{% extends "openlavaweb/base.html" %}
{% block content %}
{% if error %}
{% if error.status.status == 7 %}
<div class="alert alert-danger">Error: Queue: {{ error.queue }} does not support exclusive jobs. Job not subimtted</div>
{% else %}
<div class="alert alert-danger">Error: Unable to submit job</div>
<dl class="dl-horizontal">
	<dt>Queue</dt><dd>{{ error.queue }}</dd>
	<dt>Bad Job ID</dt><dd>{{ error.bad_job_id }}</dd>
	<dt>Bad Job Name</dt><dd>{{ error.bad_job_name }}</dd>
	<dt>Bad Requested Host</dt><dd>{{ error.bad_requested_host }}</dd>
	<dt>Error Number</dt><dd>{{ error.status.status }}</dd>
	<dt>Error Name</dt><dd>{{ error.status.name }}</dd>
</dl>
{% endif %}
{% endif %}
<form action="{% url "olw_job_submit_class" form.get_name %}" method="post">{% csrf_token %}
	<table class="table table-hover table-condensed">
		{{ form.as_table }}
	</table>
<input type="submit" value="Submit" />
</form>
{% endblock %}
